package com.biz.primus.ms.member.dao.repository;

import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import com.biz.primus.ms.member.dao.po.Notice;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author jun.liu
 * @usage
 * @reviewer
 * @since 2017-10-23
 */
@Repository
public interface NoticeRepository extends CommonJpaRepository<Notice, Long>, NoticeDao, JpaSpecificationExecutor<Notice>
{

    List<Notice> findByOrderByCreateTimestampDesc(Pageable pageable);

}
